home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xntp.idb / usr / freeware / src / xntp / xntp3-5.93a.diff.z / xntp3-5.93a.diff
Encoding:
Text File  |  1999-01-26  |  3.9 KB  |  134 lines

  1. diff -ur xntp3-5.93/ChangeLog xntp3-5.93a/ChangeLog
  2. --- xntp3-5.93/ChangeLog    Sat Apr 25 18:02:13 1998
  3. +++ xntp3-5.93a/ChangeLog    Thu Apr 30 00:07:00 1998
  4. @@ -1,3 +1,14 @@
  5. +Wed Apr 29 19:04:51 1998  Harlan Stenn  <stenn@whimsy.udel.edu>
  6. +
  7. +    * configure.in: 5.93a
  8. +
  9. +    * libntp/machines.c: Ordering of settime() stuff was wrong.
  10. +    Reported by: Michael Joosten <joost@c-lab.de>
  11. +
  12. +    * configure.in: Clean up the stub detect cases for SCO.
  13. +    * xntpd/ntp_timer.c: Applied some lost timerqueue patches.
  14. +    From: Kamal A Mostafa <kamal@images.com>
  15. +
  16.  Sat Apr 25 18:02:00 1998  Harlan Stenn  <stenn@whimsy.udel.edu>
  17.  
  18.      * configure.in: 5.93
  19. diff -ur xntp3-5.93/configure xntp3-5.93a/configure
  20. --- xntp3-5.93/configure    Sat Apr 25 18:02:36 1998
  21. +++ xntp3-5.93a/configure    Wed Apr 29 23:34:06 1998
  22. @@ -787,7 +787,7 @@
  23.  
  24.  PACKAGE=xntp3
  25.  
  26. -VERSION=5.93
  27. +VERSION=5.93a
  28.  
  29.  if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  30.    { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  31. @@ -3964,7 +3964,7 @@
  32.  done
  33.  
  34.  case "$target" in
  35. - *-*-sco3.2v45*)
  36. + *-*-sco3.2v5.0.*)
  37.      # Just stubs in SCO.  Idiots.
  38.      ;;
  39.   *) for ac_func in mkstemp
  40. @@ -4028,7 +4028,7 @@
  41.   *-*-irix*)
  42.      # Just stubs in Irix.  Idiots.
  43.      ;;
  44. - *-*-sco3.2v45*)
  45. + *-*-sco3.2v5.0.*)
  46.      # Just stubs in SCO.  Idiots.
  47.      ;;
  48.   *) for ac_func in mlockall
  49. diff -ur xntp3-5.93/configure.in xntp3-5.93a/configure.in
  50. --- xntp3-5.93/configure.in    Sat Apr 25 18:01:54 1998
  51. +++ xntp3-5.93a/configure.in    Wed Apr 29 23:33:18 1998
  52. @@ -1,7 +1,7 @@
  53.  dnl -*-fundamental-*-
  54.  dnl Process this file with autoconf to produce a configure script.
  55.  AC_INIT(xntpd/ntp_refclock.c)
  56. -AM_INIT_AUTOMAKE(xntp3, 5.93)
  57. +AM_INIT_AUTOMAKE(xntp3, 5.93a)
  58.  AC_CANONICAL_SYSTEM
  59.  AC_DEFINE_UNQUOTED(STR_SYSTEM, "$target")
  60.  AM_CONFIG_HEADER(config.h)
  61. @@ -410,7 +410,7 @@
  62.  AC_CHECK_FUNCS(clock_settime daemon getbootfile getdtablesize getrusage)
  63.  AC_CHECK_FUNCS(gettimeofday getuid K_open kvm_open memcpy memmove memset)
  64.  case "$target" in
  65. - *-*-sco3.2v[45]*)
  66. + *-*-sco3.2v5.0.*)
  67.      # Just stubs in SCO.  Idiots.
  68.      ;;
  69.   *) AC_CHECK_FUNCS(mkstemp)
  70. @@ -420,7 +420,7 @@
  71.   *-*-irix*)
  72.      # Just stubs in Irix.  Idiots.
  73.      ;;
  74. - *-*-sco3.2v[45]*)
  75. + *-*-sco3.2v5.0.*)
  76.      # Just stubs in SCO.  Idiots.
  77.      ;;
  78.   *) AC_CHECK_FUNCS(mlockall)
  79. Only in xntp3-5.93a/html: copyright.html.orig
  80. diff -ur xntp3-5.93/libntp/machines.c xntp3-5.93a/libntp/machines.c
  81. --- xntp3-5.93/libntp/machines.c    Mon Aug 11 01:13:49 1997
  82. +++ xntp3-5.93a/libntp/machines.c    Wed Apr 29 22:09:50 1998
  83. @@ -112,10 +112,7 @@
  84.  }
  85.  #endif /* SYS_PTX */
  86.  
  87. -#ifdef HAVE_SETTIMEOFDAY
  88. -const char *set_tod_using = "settimeofday";
  89. -#else /* not HAVE_SETTIMEOFDAY */
  90. -# ifdef HAVE_CLOCK_SETTIME
  91. +#ifdef HAVE_CLOCK_SETTIME
  92.  const char *set_tod_using = "clock_settime";
  93.  
  94.  /*#include <time.h>    */
  95. @@ -134,6 +131,9 @@
  96.    return clock_settime(CLOCK_REALTIME, &ts);
  97.  }
  98.  
  99. +#else /* not HAVE_CLOCK_SETTIME */
  100. +# ifdef HAVE_SETTIMEOFDAY
  101. +const char *set_tod_using = "settimeofday";
  102.  # else /* not (HAVE_SETTIMEOFDAY || HAVE_CLOCK_SETTIME) */
  103.  #  ifdef HAVE_STIME
  104.  char *set_tod_using = "stime";
  105. @@ -146,9 +146,11 @@
  106.    return (stime(&tvp->tv_sec));    /* lie as bad as SysVR4 */
  107.  }
  108.  
  109. +#  else
  110. +#   include <Bletch: How do we set the time here?>
  111.  #  endif /* HAVE_STIME */
  112.  # endif /* not (HAVE_SETTIMEOFDAY || HAVE_CLOCK_SETTIME) */
  113. -#endif /* not HAVE_SETTIME */
  114. +#endif /* not HAVE_CLOCK_SETTIME */
  115.  
  116.  
  117.  #else /* SYS_WINNT */
  118. Only in xntp3-5.93a/patches/done: 191
  119. diff -ur xntp3-5.93/xntpd/ntp_timer.c xntp3-5.93a/xntpd/ntp_timer.c
  120. --- xntp3-5.93/xntpd/ntp_timer.c    Fri Apr 24 19:42:46 1998
  121. +++ xntp3-5.93a/xntpd/ntp_timer.c    Thu Apr 30 00:05:37 1998
  122. @@ -542,9 +542,10 @@
  123.   */
  124.  void TIMER_DEQUEUE(struct event *ev)
  125.  {
  126. -    EV_LINKCHK( ev, "TIMER_DEQUEUE(): ev" );
  127. +    EV_ASSERT( ev, "TIMER_DEQUEUE(): ev" );
  128.      WINNT_WAIT();
  129.      if ((ev)->next != 0) {
  130. +        EV_LINKCHK( ev, "TIMER_DEQUEUE(): ev" );
  131.          (ev)->next->prev = (ev)->prev;
  132.          (ev)->prev->next = (ev)->next;
  133.          (ev)->next = (ev)->prev = 0;
  134.